<div id="content_right">
    <%= render :partial => "/library/library_map" %>
</div>
<div id="content_left">
<%= render :partial => "/library/library_header" %>
<h1 class="library_title">Library of e.Case Studies</h1>
<% 
  light_bg = true
  @countries.each do |country|
    ecases = country.ecases
    has_image = !country.image_url.nil?
%>

    <div class="<%=light_bg ? 'country_light' : 'country_dark' %>" >
    <div class="country_image" >
      <% if has_image -%>
        
          <%= image_tag url_for_file_column(country, :image_url) %> 
        
      <% end -%>
      </div>
        <div class="country_ecases" >
          <p><%=h country.name %></p>
          <div class="list" >
            <ul>
              <% ecases.each do |i| %>
                <li><%= link_to i.title, :controller =>"ecases", :action=> "show" ,:id => i.id %></li>
              <% end %>
            </ul>
          </div>
        </div>
        <div class="clear_float_left" ></div>
    </div>
  <% 
    light_bg = !light_bg
  end 
  %>
</div>

<div id="content_discard_float" ></div>